import random

students = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L']
rest = ['J', 'K', 'L']
while len(students) != 0:
    s = input("按任意键开始点名，按q退出")
    if s != "q":
        rand=random.choice(students)
        if rand in rest:
            print(f"{rand}请假")
            students.remove(rand)
        else:
            print(f"点到{rand}")
            students.remove(rand)
    else:
        print("点名结束")
        break
else:
    print("全部点过，点名结束")
